load("//tools:defaults.bzl", "ts_project")

package(default_visibility = ["//visibility:public"])

ts_project(
    name = "core",
    srcs = ["index.ts"] + glob([
        "src/*.ts",
    ]),
    deps = [
        ":api",
        "//:node_modules/@types/semver",
        "//:node_modules/semver",
        "//:node_modules/typescript",
        "//packages:types",
        "//packages/compiler",
        "//packages/compiler-cli/src/ngtsc/annotations",
        "//packages/compiler-cli/src/ngtsc/annotations/common",
        "//packages/compiler-cli/src/ngtsc/cycles",
        "//packages/compiler-cli/src/ngtsc/diagnostics",
        "//packages/compiler-cli/src/ngtsc/docs",
        "//packages/compiler-cli/src/ngtsc/entry_point",
        "//packages/compiler-cli/src/ngtsc/file_system",
        "//packages/compiler-cli/src/ngtsc/imports",
        "//packages/compiler-cli/src/ngtsc/incremental",
        "//packages/compiler-cli/src/ngtsc/incremental:api",
        "//packages/compiler-cli/src/ngtsc/incremental/semantic_graph",
        "//packages/compiler-cli/src/ngtsc/indexer",
        "//packages/compiler-cli/src/ngtsc/metadata",
        "//packages/compiler-cli/src/ngtsc/partial_evaluator",
        "//packages/compiler-cli/src/ngtsc/perf",
        "//packages/compiler-cli/src/ngtsc/program_driver",
        "//packages/compiler-cli/src/ngtsc/reflection",
        "//packages/compiler-cli/src/ngtsc/resource",
        "//packages/compiler-cli/src/ngtsc/scope",
        "//packages/compiler-cli/src/ngtsc/shims",
        "//packages/compiler-cli/src/ngtsc/shims:api",
        "//packages/compiler-cli/src/ngtsc/transform",
        "//packages/compiler-cli/src/ngtsc/transform/jit",
        "//packages/compiler-cli/src/ngtsc/typecheck",
        "//packages/compiler-cli/src/ngtsc/typecheck/api",
        "//packages/compiler-cli/src/ngtsc/typecheck/diagnostics",
        "//packages/compiler-cli/src/ngtsc/typecheck/extended",
        "//packages/compiler-cli/src/ngtsc/typecheck/extended/api",
        "//packages/compiler-cli/src/ngtsc/typecheck/template_semantics",
        "//packages/compiler-cli/src/ngtsc/typecheck/template_semantics/api",
        "//packages/compiler-cli/src/ngtsc/util",
        "//packages/compiler-cli/src/ngtsc/validation",
        "//packages/compiler-cli/src/ngtsc/xi18n",
    ],
)

ts_project(
    name = "api",
    srcs = glob(["api/**/*.ts"]),
    deps = [
        "//:node_modules/typescript",
        "//packages/compiler-cli/src/ngtsc/diagnostics",
        "//packages/compiler-cli/src/ngtsc/file_system",
    ],
)
